home *** CD-ROM | disk | FTP | other *** search
- *** 1.38 1992/03/10 15:22:18
- --- PatchLev.h 1992/03/22 22:06:18
- ***************
- *** 1,5 ****
-
- ! #define PatchLevel "77"
-
- /*
- *
- --- 1,5 ----
-
- ! #define PatchLevel "78"
-
- /*
- *
- *** 1.4 1992/03/06 19:29:17
- --- compiler.h 1992/03/22 22:06:19
- ***************
- *** 40,45 ****
- --- 40,54 ----
- #endif
-
- #ifdef __SOZOBON__
- + /*
- + * Temporary hacks to overcome 1.33i's short symbol names. Hopefully future
- + * versions will allow the extended Sozobon symbol format.
- + */
- + #define _mallocChunkSize _sc_mCS
- + #define _malloczero _sc_mz
- + #define _console_read_byte _sc_crb
- + #define _console_write_byte _sc_cwb
- +
- /* Doesn't know (void *) is special (but can handle it); this works better. */
- #define __NULL (0L)
-
- *** 1.14 1991/12/26 16:23:20
- --- ioctl.h 1992/03/22 22:06:22
- ***************
- *** 16,21 ****
- --- 16,22 ----
- #define TIOCSWINSZ (('T'<< 8) | 12)
-
- #ifdef __MINT__
- + #define FSTAT (('F'<< 8) | 0)
- #define FIONREAD (('F'<< 8) | 1)
- #define FIONWRITE (('F'<< 8) | 2)
- #define TIOCGPGRP (('T'<< 8) | 6)
- ***************
- *** 23,28 ****
- --- 24,31 ----
- #define TIOCFLUSH (('T'<< 8) | 8)
- #define TIOCSTOP (('T'<< 8) | 9)
- #define TIOCSTART (('T'<< 8) | 10)
- + #define TIOCGXKEY (('T'<< 8) | 13)
- + #define TIOCSXKEY (('T'<< 8) | 14)
-
- /* not yet implemented in MiNT */
- #define TIOCGETD (('T'<<8) | 16)
- ***************
- *** 67,72 ****
- --- 70,84 ----
- #define PASS8 0x0100
- #define EVENP 0x4000
- #define ODDP 0x8000
- +
- + #ifdef __MINT__
- + #define TOSTOP 0x0100
- + #define XKEY 0x0200
- + struct xkey {
- + short xk_num;
- + char xk_def[8];
- + };
- + #endif
-
- /* Only ones that are likely to be used are here */
- /* ok, but emacs thinks it knows their value */
- *** 1.12 1991/12/26 16:23:20
- --- math.h 1992/03/22 22:06:23
- ***************
- *** 135,141 ****
- --- 135,143 ----
- __EXTERN double cabs __PROTO((COMPLEX));
- __EXTERN COMPLEX cmult __PROTO((COMPLEX, COMPLEX));
- __EXTERN COMPLEX csqrt __PROTO((COMPLEX));
- + #ifndef __GNUG__
- __EXTERN COMPLEX clog __PROTO((COMPLEX));
- + #endif
- __EXTERN COMPLEX cacos __PROTO((COMPLEX));
- __EXTERN COMPLEX cadd __PROTO((COMPLEX,COMPLEX));
- __EXTERN COMPLEX casin __PROTO((COMPLEX));
- *** 1.14 1991/06/20 02:21:30
- --- memory.h 1992/03/22 22:06:23
- ***************
- *** 14,22 ****
- typedef _SIZE_T size_t;
- #endif
-
- ! #ifdef __GNUC__
- # ifndef alloca
- ! # define alloca __builtin_alloca
- # endif
- #endif
-
- --- 14,22 ----
- typedef _SIZE_T size_t;
- #endif
-
- ! #if defined(__GNUC__) || defined(__GNUG__)
- # ifndef alloca
- ! # define alloca(x) __builtin_alloca(x)
- # endif
- #endif
-
- *** 1.10 1991/12/26 16:23:20
- --- minimal.h 1992/03/22 22:06:23
- ***************
- *** 18,23 ****
- --- 18,28 ----
-
- __EXTERN __EXITING __exit __PROTO((long)); /* def in crt0.c */
-
- + void _init_signal __PROTO((void));
- + int raise __PROTO((int sig));
- + void exit __PROTO((int status));
- + void _exit __PROTO((int status));
- + void _main __PROTO((long argc, char **argv, char **environ));
-
- void
- _init_signal()
- *** 1.25 1992/03/06 19:29:17
- --- osbind.h 1992/03/22 22:06:24
- ***************
- *** 80,85 ****
- --- 80,99 ----
- *
- * -- straps.cpp and traps.c are history. we dont need no stinking
- * non-reentrant bindings (straps) or incorrect ones (traps.c :-)
- + *
- + * 03/15/92 ++jrb
- + * -- another re-hack needed for gcc-2.0: the optimization that we
- + * used earlier for traps with more than 4 args, making them volatile
- + * and using "g" constraints no longer works, because gcc has become
- + * so smart! we now remove the volatile, and give "r" constraints
- + * (just like traps with <= 4 args). that way the args are evaled
- + * before we change the stack under gcc, and at appropriate times
- + * put into reggies and pushed (or as in most cases, they are evaled
- + * straight into reggies and pushed -- and in even more common cases
- + * they are already in reggies, and they are just pushed). not doing
- + * this with -fomit-frame-pointer was causing the temps (from evaluing
- + * the args) to be created on the stack, but when we changed sp
- + * from under gccs feet, the offsets to the temps ended up being wrong.
- */
-
- #ifndef _OSBIND_H
- ***************
- *** 261,270 ****
- #define trap_1_wwlll(n, a, b, c, d) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! volatile short _a = (volatile short)(a); \
- ! volatile long _b = (volatile long) (b); \
- ! volatile long _c = (volatile long) (c); \
- ! volatile long _d = (volatile long) (d); \
- \
- __asm__ volatile \
- ("\
- --- 275,284 ----
- #define trap_1_wwlll(n, a, b, c, d) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! short _a = (short)(a); \
- ! long _b = (long) (b); \
- ! long _c = (long) (c); \
- ! long _d = (long) (d); \
- \
- __asm__ volatile \
- ("\
- ***************
- *** 274,281 ****
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(n), "g"(_a), "g"(_b), "g"(_c), "g"(_d) /* inputs */ \
- ! ); \
- /* no more than 5 operand allowed in asm() -- therefore the split */ \
- \
- __asm__ volatile \
- --- 288,295 ----
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(n), "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs */ \
- ! ); \
- /* no more than 5 operand allowed in asm() -- therefore the split */ \
- \
- __asm__ volatile \
- ***************
- *** 364,374 ****
- #define trap_13_wwlwww(n, a, b, c, d, e) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! volatile short _a = (volatile short)(a); \
- ! volatile long _b = (volatile long) (b); \
- ! volatile short _c = (volatile short)(c); \
- ! volatile short _d = (volatile short)(d); \
- ! volatile short _e = (volatile short)(e); \
- \
- __asm__ volatile \
- ("\
- --- 378,388 ----
- #define trap_13_wwlwww(n, a, b, c, d, e) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! short _a = (short)(a); \
- ! long _b = (long) (b); \
- ! short _c = (short)(c); \
- ! short _d = (short)(d); \
- ! short _e = (short)(e); \
- \
- __asm__ volatile \
- ("\
- ***************
- *** 378,384 ****
- movl %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(_a), "g"(_b), "g"(_c), "g"(_d), "g"(_e) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- --- 392,398 ----
- movl %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "r"(_a), "r"(_b), "r"(_c), "r"(_d), "r"(_e) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- ***************
- *** 552,559 ****
- #define trap_14_wllwwwww(n, a, b, c, d, e, f, g) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! volatile long _a = (volatile long) (a); \
- ! volatile long _b = (volatile long) (b); \
- short _c = (short)(c); \
- short _d = (short)(d); \
- short _e = (short)(e); \
- --- 566,573 ----
- #define trap_14_wllwwwww(n, a, b, c, d, e, f, g) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! long _a = (long) (a); \
- ! long _b = (long) (b); \
- short _c = (short)(c); \
- short _d = (short)(d); \
- short _e = (short)(e); \
- ***************
- *** 568,574 ****
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(_c), "g"(_d), "g"(_e), "g"(_f), "g"(_g) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- --- 582,588 ----
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "r"(_c), "r"(_d), "r"(_e), "r"(_f), "r"(_g) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- ***************
- *** 579,585 ****
- trap #14; \
- addw #20,sp " \
- : "=r"(retvalue) /* outputs */ \
- ! : "g"(n), "g"(_a), "g"(_b) /* inputs */ \
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */ \
- ); \
- retvalue; \
- --- 593,599 ----
- trap #14; \
- addw #20,sp " \
- : "=r"(retvalue) /* outputs */ \
- ! : "g"(n), "r"(_a), "r"(_b) /* inputs */ \
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */ \
- ); \
- retvalue; \
- ***************
- *** 588,596 ****
- #define trap_14_wllwwwwlw(n, a, b, c, d, e, f, g, h) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! volatile long _a = (volatile long) (a); \
- ! volatile long _b = (volatile long) (b); \
- ! volatile short _c = (volatile short)(c); \
- short _d = (short)(d); \
- short _e = (short)(e); \
- short _f = (short)(f); \
- --- 602,610 ----
- #define trap_14_wllwwwwlw(n, a, b, c, d, e, f, g, h) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! long _a = (long) (a); \
- ! long _b = (long) (b); \
- ! short _c = (short)(c); \
- short _d = (short)(d); \
- short _e = (short)(e); \
- short _f = (short)(f); \
- ***************
- *** 605,611 ****
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(_d), "g"(_e), "g"(_f), "g"(_g), "g"(_h) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- --- 619,625 ----
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "r"(_d), "r"(_e), "r"(_f), "r"(_g), "r"(_h) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- ***************
- *** 617,623 ****
- trap #14; \
- addw #24,sp " \
- : "=r"(retvalue) /* outputs */ \
- ! : "g"(n), "g"(_a), "g"(_b), "g"(_c) /* inputs */ \
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */ \
- ); \
- retvalue; \
- --- 631,637 ----
- trap #14; \
- addw #24,sp " \
- : "=r"(retvalue) /* outputs */ \
- ! : "g"(n), "r"(_a), "r"(_b), "r"(_c) /* inputs */ \
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */ \
- ); \
- retvalue; \
- ***************
- *** 626,635 ****
- #define trap_14_wllwwwwwlw(n, a, b, c, d, e, f, g, h, i) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! volatile long _a = (volatile long) (a); \
- ! volatile long _b = (volatile long) (b); \
- ! volatile short _c = (volatile short)(c); \
- ! volatile short _d = (volatile short)(d); \
- short _e = (short)(e); \
- short _f = (short)(f); \
- short _g = (short)(g); \
- --- 640,649 ----
- #define trap_14_wllwwwwwlw(n, a, b, c, d, e, f, g, h, i) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! long _a = (long) (a); \
- ! long _b = (long) (b); \
- ! short _c = (short)(c); \
- ! short _d = (short)(d); \
- short _e = (short)(e); \
- short _f = (short)(f); \
- short _g = (short)(g); \
- ***************
- *** 644,650 ****
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(_e), "g"(_f), "g"(_g), "g"(_h), "g"(_i) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- --- 658,664 ----
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "r"(_e), "r"(_f), "r"(_g), "r"(_h), "r"(_i) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- ***************
- *** 655,661 ****
- movl %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(n), "g"(_a), "g"(_b), "g"(_c), "g"(_d) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- --- 669,675 ----
- movl %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(n), "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- ***************
- *** 673,679 ****
- #define trap_14_wwwwwww(n, a, b, c, d, e, f) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! volatile short _a = (volatile short)(a); \
- short _b = (short)(b); \
- short _c = (short)(c); \
- short _d = (short)(d); \
- --- 687,693 ----
- #define trap_14_wwwwwww(n, a, b, c, d, e, f) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! short _a = (short)(a); \
- short _b = (short)(b); \
- short _c = (short)(c); \
- short _d = (short)(d); \
- ***************
- *** 688,694 ****
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(_b), "g"(_c), "g"(_d), "g"(_e), "g"(_f) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- --- 702,708 ----
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "r"(_b), "r"(_c), "r"(_d), "r"(_e), "r"(_f) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- ***************
- *** 698,704 ****
- trap #14; \
- addw #14,sp " \
- : "=r"(retvalue) /* outputs */ \
- ! : "g"(n), "g"(_a) /* inputs */ \
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */ \
- ); \
- retvalue; \
- --- 712,718 ----
- trap #14; \
- addw #14,sp " \
- : "=r"(retvalue) /* outputs */ \
- ! : "g"(n), "r"(_a) /* inputs */ \
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */ \
- ); \
- retvalue; \
- ***************
- *** 729,738 ****
- #define trap_14_wllww(n, a, b, c, d) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! volatile long _a = (volatile long) (a); \
- ! volatile long _b = (volatile long) (b); \
- ! volatile short _c = (volatile short)(c); \
- ! volatile short _d = (volatile short)(d); \
- \
- __asm__ volatile \
- ("\
- --- 743,752 ----
- #define trap_14_wllww(n, a, b, c, d) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! long _a = (long) (a); \
- ! long _b = (long) (b); \
- ! short _c = (short)(c); \
- ! short _d = (short)(d); \
- \
- __asm__ volatile \
- ("\
- ***************
- *** 741,747 ****
- movl %1,sp@-; \
- movl %0,sp@- " \
- : /* outputs */ \
- ! : "g"(_a), "g"(_b), "g"(_c), "g"(_d) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- --- 755,761 ----
- movl %1,sp@-; \
- movl %0,sp@- " \
- : /* outputs */ \
- ! : "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- ***************
- *** 759,768 ****
- #define trap_14_wwwwl(n, a, b, c, d) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! volatile short _a = (volatile short)(a); \
- ! volatile short _b = (volatile short)(b); \
- ! volatile short _c = (volatile short)(c); \
- ! volatile long _d = (volatile long) (d); \
- \
- __asm__ volatile \
- ("\
- --- 773,782 ----
- #define trap_14_wwwwl(n, a, b, c, d) \
- ({ \
- register long retvalue __asm__("d0"); \
- ! short _a = (short)(a); \
- ! short _b = (short)(b); \
- ! short _c = (short)(c); \
- ! long _d = (long) (d); \
- \
- __asm__ volatile \
- ("\
- ***************
- *** 771,777 ****
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "g"(_a), "g"(_b), "g"(_c), "g"(_d) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- --- 785,791 ----
- movw %1,sp@-; \
- movw %0,sp@- " \
- : /* outputs */ \
- ! : "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs */ \
- ); \
- \
- __asm__ volatile \
- ***************
- *** 1124,1130 ****
- #define Ongibit(andmask) \
- (void)trap_14_ww((short)(0x1E),(short)(andmask))
- #define Xbtimer(timer,ctrl,data,vptr) \
- ! (void)trap_14_wwwwl((short)(0x1E),(short)(timer),(short)(ctrl), \
- (short)(data),(long)(vptr))
- #define Dosound(ptr) \
- (void)trap_14_wl((short)(0x20),(long)(ptr))
- --- 1138,1144 ----
- #define Ongibit(andmask) \
- (void)trap_14_ww((short)(0x1E),(short)(andmask))
- #define Xbtimer(timer,ctrl,data,vptr) \
- ! (void)trap_14_wwwwl((short)(0x1F),(short)(timer),(short)(ctrl), \
- (short)(data),(long)(vptr))
- #define Dosound(ptr) \
- (void)trap_14_wl((short)(0x20),(long)(ptr))
- *** 1.2 1992/03/06 19:29:17
- --- ostruct.h 1992/03/22 22:06:25
- ***************
- *** 1,6 ****
- --- 1,8 ----
- #ifndef _OSTRUCT_H
- #define _OSTRUCT_H
-
- + #include <compiler.h>
- +
- #if defined(__cplusplus)
- extern "C" {
- #endif
- ***************
- *** 133,147 ****
-
- /* Structure returned by Kbdvbase() */
- typedef struct {
- ! void (*midivec)(void);
- ! void (*vkbderr)(void);
- ! void (*vmiderr)(void);
- ! void (*statvec)(void *);
- ! void (*mousevec)(void *);
- ! void (*clockvec)(void *);
- ! void (*joyvec)(void *);
- ! long (*midisys)(void);
- ! long (*ikbdsys)(void);
- char kbstate;
- } _KBDVECS;
-
- --- 135,149 ----
-
- /* Structure returned by Kbdvbase() */
- typedef struct {
- ! void (*midivec) __PROTO((void));
- ! void (*vkbderr) __PROTO((void));
- ! void (*vmiderr) __PROTO((void));
- ! void (*statvec) __PROTO((void *));
- ! void (*mousevec) __PROTO((void *));
- ! void (*clockvec) __PROTO((void *));
- ! void (*joyvec) __PROTO((void *));
- ! long (*midisys) __PROTO((void));
- ! long (*ikbdsys) __PROTO((void));
- char kbstate;
- } _KBDVECS;
-
- *** 1.17 1991/06/20 02:21:30
- --- stdlib.h 1992/03/22 22:06:28
- ***************
- *** 76,82 ****
- __EXTERN __EXITING abort __PROTO((void));
- #ifndef __cplusplus
- /* bug in g++ 1.39.0 -- cant digest proto */
- ! __EXTERN int atexit __PROTO((void (*func)(void)));
- #endif
- __EXTERN __EXITING exit __PROTO((int status));
-
- --- 76,82 ----
- __EXTERN __EXITING abort __PROTO((void));
- #ifndef __cplusplus
- /* bug in g++ 1.39.0 -- cant digest proto */
- ! __EXTERN int atexit __PROTO((void (*)(void)));
- #endif
- __EXTERN __EXITING exit __PROTO((int status));
-
- *** 1.9 1992/01/29 21:08:08
- --- vdibind.h 1992/03/22 22:06:30
- ***************
- *** 23,29 ****
- __EXTERN int vsm_type __PROTO((int handle, int symbol));
- __EXTERN void vsm_height __PROTO((int handle, int height));
- __EXTERN int vsm_color __PROTO((int handle, int index));
- ! __EXTERN void vst_height __PROTO((int handle, int height, int *charw,
- int *charh, int *cellw, int *cellh));
- __EXTERN int vst_point __PROTO((int handle, int point, int *charw,
- int *charh, int *cellw, int *cellh));
- --- 23,29 ----
- __EXTERN int vsm_type __PROTO((int handle, int symbol));
- __EXTERN void vsm_height __PROTO((int handle, int height));
- __EXTERN int vsm_color __PROTO((int handle, int index));
- ! __EXTERN int vst_height __PROTO((int handle, int height, int *charw,
- int *charh, int *cellw, int *cellh));
- __EXTERN int vst_point __PROTO((int handle, int point, int *charw,
- int *charh, int *cellw, int *cellh));
- ***************
- *** 91,99 ****
- __EXTERN void v_show_c __PROTO((int handle, int reset));
- __EXTERN void v_hide_c __PROTO((int handle));
- __EXTERN void vq_mouse __PROTO((int handle, int *pstatus, int *x, int *y));
- ! __EXTERN void vex_butv __PROTO((int handle, void *new, void **old));
- ! __EXTERN void vex_motv __PROTO((int handle, void *new, void **old));
- ! __EXTERN void vex_curv __PROTO((int handle, void *new, void **old));
- __EXTERN void vq_key_s __PROTO((int handle, int *state));
-
-
- --- 91,99 ----
- __EXTERN void v_show_c __PROTO((int handle, int reset));
- __EXTERN void v_hide_c __PROTO((int handle));
- __EXTERN void vq_mouse __PROTO((int handle, int *pstatus, int *x, int *y));
- ! __EXTERN void vex_butv __PROTO((int handle, void *new_p, void **old));
- ! __EXTERN void vex_motv __PROTO((int handle, void *new_p, void **old));
- ! __EXTERN void vex_curv __PROTO((int handle, void *new_p, void **old));
- __EXTERN void vq_key_s __PROTO((int handle, int *state));
-
-
-